package com.gogo.mall.controller;

import com.gogo.mall.entity.QyAddress;
import com.gogo.mall.result.ResponseCode;
import com.gogo.mall.service.QyAddressService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (QyAddress)表控制层
 *
 * @author yangjing
 * @since 2021-09-01 14:42:06
 */
@RestController
@RequestMapping("qyAddress")
public class QyAddressController {
    /**
     * 服务对象
     */
    @Resource
    private QyAddressService qyAddressService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public QyAddress selectOne(Integer id) {
        return this.qyAddressService.queryById(id);
    }


}
